package com.housekeeper.manage.mapper;

import com.housekeeper.manage.pojos.Operation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OperationMapper {
    @Insert("INSERT INTO operation VALUES (NULL,#{time}, #{type}, #{describe}, #{status},#{operator},#{codeId},#{isRecord});")
    void insertOperation(Operation operation);
    @Select("SELECT * FROM operation WHERE code_id = #{billCode}")
    Operation getOperation(Long billCode);
}
